package io_exercise;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;

public class ISRDemo1 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis1=new FileInputStream("osw1.txt");
        InputStreamReader isr1=new InputStreamReader(fis1, StandardCharsets.UTF_8);
        int d1;
        while ((d1=isr1.read())!=-1){
            System.out.print((char) d1);
        }
        isr1.close();
    }
}
